﻿namespace HomeworkOppPartOne
{
    using System;
    
    class Display
    {
        private double displaySize;
        private double displayColors;

        public Display()
        {
            this.DisplaySize = displaySize;
            this.DisplayColors = displayColors;
        }
        
        public Display(double displaySize) : this()
        {
        }
        
        public Display(double displaySize,double diplayColors) : this()
        {
        }

        internal double DisplaySize
        {
            get { return this.displaySize; }
            private set
            {
                if (value < 0)
                {
                    throw new ArgumentException("Invalid Input! Size can`t be negative!");
                }
            this.displaySize = value;
            }
        }
        internal double DisplayColors
        {
            get { return this.displayColors; }
            private set
            {
                if (value < 0)
                {
                    throw new ArgumentException("Invalid input!Colors can`t be negative.");
                }
                this.displayColors = value;
            }
        }

        public override string ToString()
        {
            return string.Format("Display size: {0} Display colors: {1}" ,this.displaySize,this.displayColors);
        }
    }
}
